<?php

namespace Worker\CrawlerBundle\Command;

use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

/**
 * Description of StopCommand
 *
 * @author opascual
 */
class StopCommand extends ContainerAwareCommand 
{
    public function configure()
    {
        $this->setName("worker:crawler:stop");
    }
    
    public function execute()
    {
        $output->writeln("Soping workers...");
        $this->getContainer()->get('crawler')->stop();
        $output->writeln("Done!!.");
    }
}

?>
